<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>
<script>

var s = "abcbcacba";
var r = /(\w)(\w)(\w)\2\3\1\3\2\1/;
var b = r.test(s); 			// 验证正则表达式是否匹配该字符串
alert(b); 					// 返回true


</script>
</body>
</html>
